<?

/* start data FOR DROPDOWN MENUS*/
$child_birth_position = array('none'=>'none','first'=>'First','second'=>'Second','third'=>'third','fourth'=>'Fourth','fifth'=>'Fifth','sixth'=>'Sixth','youngest'=>'Youngest','only'=>'Only');
/* end dataFOR DROPDOWN MENUS*/




$parent_status = set_value('parent_status',$student->parent_status); 
$status_how_long = set_value('status_how_long',$student->parent_status_how_long);
$right_over_child = set_value('right_over_child',$student->parent_rights);
$position_of_child = set_value('position_of_child',$student->child_pos);
$is_child_adopted = set_value('is_child_adopted',$student->child_adopted);
$age_of_adoption = set_value('age_of_adoption',$student->child_age_adopted);
$child_aware_adopted = set_value('age_of_adoption',$student->child_aware_adopted);
$mother_presently_pregnant = set_value('mother_presently_pregnant',$student->mother_present_pregnant);
$mother_pregnancy_due_date = set_value('mother_pregnancy_due_date',$student->mother_due_date);

$family_deaths = set_value('family_deaths',$student->family_deaths);
$family_deaths_relation = set_value('family_accidents',$student->family_deaths_child_relation);
$family_accidents = set_value('family_accidents',$student->family_accidents);
$family_accidents_relation = set_value('family_accidents_relation',$student->family_accidents_child_relation);
$what = set_value('what',$student->what);
$when = set_value('when',$student->when);


$siblingage1 = set_value('siblingage1',$student->sibling_age1);
$siblingage2 = set_value('siblingage2',$student->sibling_age2);
$siblingage3 = set_value('siblingage3',$student->sibling_age3);
$siblingage4 = set_value('siblingage4',$student->sibling_age4);
$siblingage5 = set_value('siblingage5',$student->sibling_age5);
$siblingage6 = set_value('siblingage6',$student->sibling_age6);


$siblingfname1 = set_value('siblingfname1',$student->sibling_fname1);
$siblingfname2 = set_value('siblingfname2',$student->sibling_fname2);
$siblingfname3 = set_value('siblingfname3',$student->sibling_fname3);
$siblingfname4 = set_value('siblingfname4',$student->sibling_fname4);
$siblingfname5 = set_value('siblingfname5',$student->sibling_fname5);
$siblingfname6 = set_value('siblingfname6',$student->sibling_fname6);

$siblinglname1 = set_value('siblingname1',$student->sibling_lname1);
$siblinglname2 = set_value('siblingname2',$student->sibling_lname2);
$siblinglname3 = set_value('siblingname3',$student->sibling_lname3);
$siblinglname4 = set_value('siblingname4',$student->sibling_lname4);
$siblinglname5 = set_value('siblingname5',$student->sibling_lname5);
$siblinglname6 = set_value('siblingname6',$student->sibling_lname6);


$hhmembers1 = set_value('hhmembers1',$student->other_household_member1);
$hhmembers2 = set_value('hhmembers2',$student->other_household_member2);
$hhmembers3 = set_value('hhmembers3',$student->other_household_member3);
$hhmembers4 = set_value('hhmembers4',$student->other_household_member4);
$hhmembers5 = set_value('hhmembers5',$student->other_household_member5);
$hhmembers6 = set_value('hhmembers6',$student->other_household_member6);

$hhmembersage1 = set_value('hhmembersage1',$student->other_household_age1);
$hhmembersage2 = set_value('hhmembersage2',$student->other_household_age2);
$hhmembersage3 = set_value('hhmembersage3',$student->other_household_age3);
$hhmembersage4 = set_value('hhmembersage4',$student->other_household_age4);
$hhmembersage5 = set_value('hhmembersage5',$student->other_household_age5);
$hhmembersage6 = set_value('hhmembersage6',$student->other_household_age6);


$language_at_home = set_value('language_at_home',$student->languages_spoken_at_home);
$family_activities = set_value('family_activities',$student->family_activities);
$family_activities_frequent = set_value('family_activities_frequent',$student->family_activities_frequent);
$tv_time = set_value('tv_time',$student->time_spent_on_tv);
$tv_whom = set_value('tv_whom',$student->tv_whom);
$radio_time = set_value('radio_time',$student->time_spent_on_radio);
$radio_whom = set_value('radio_whom',$student->radio_whom);
$computergames_time = set_value('computergames_time',$student->time_spent_on_pc);
$computergames_whom = set_value('computergames_whom',$student->pc_whom);
$child_responsibilities_what = set_value('child_responsibilities_what',$student->responsibility_what);
$child_play_group = set_value('child_play_group',$student->child_playgroup);
$child_play_group_frequent = set_value('child_play_group_frequent',$student->child_playgroup_frequent);
$other_interest = set_value('other_interest',$student->child_interest);

//CHECK if value updated , if yes check if approve, denied  or pending
/*
 * Function located at parent_helper
 */

$profile_request = isset($profile_request) ? $profile_request : false;
$req_id = isset($req_id) ? $req_id : 0;

$is_parent_status = req_check_if_updated($req_id, 'parent_status',$student->parent_status, $profile_request);
$is_status_how_long = req_check_if_updated($req_id, 'parent_status_how_long',$student->parent_status_how_long, $profile_request);
$is_right_over_child = req_check_if_updated($req_id, 'parent_rights',$student->parent_rights, $profile_request);
$is_position_of_child = req_check_if_updated($req_id, 'child_pos',$student->child_pos, $profile_request);
$is_is_child_adopted = req_check_if_updated($req_id, 'child_adopted',$student->child_adopted, $profile_request);
$is_age_of_adoption = req_check_if_updated($req_id, 'child_age_adopted',$student->child_age_adopted, $profile_request);
$is_child_aware_adopted = req_check_if_updated($req_id, 'child_aware_adopted',$student->child_aware_adopted, $profile_request);
$is_mother_presently_pregnant = req_check_if_updated($req_id, 'mother_present_pregnant',$student->mother_present_pregnant, $profile_request);
$is_mother_pregnancy_due_date = req_check_if_updated($req_id, 'mother_due_date',$student->mother_due_date, $profile_request);

$is_family_deaths = req_check_if_updated($req_id, 'family_deaths',$student->family_deaths, $profile_request);
$is_family_deaths_relation = req_check_if_updated($req_id, 'family_deaths_child_relation',$student->family_deaths_child_relation, $profile_request);
$is_family_accidents = req_check_if_updated($req_id, 'family_accidents',$student->family_accidents, $profile_request);
$is_family_accidents_relation = req_check_if_updated($req_id, 'family_accidents_child_relation',$student->family_accidents_child_relation, $profile_request);
$is_what = req_check_if_updated($req_id, 'what',$student->what, $profile_request);
$is_when = req_check_if_updated($req_id, 'when',$student->when, $profile_request);


$is_siblingage1 = req_check_if_updated($req_id, 'sibling_age1',$student->sibling_age1, $profile_request);
$is_siblingage2 = req_check_if_updated($req_id, 'sibling_age2',$student->sibling_age2, $profile_request);
$is_siblingage3 = req_check_if_updated($req_id, 'sibling_age3',$student->sibling_age3, $profile_request);
$is_siblingage4 = req_check_if_updated($req_id, 'sibling_age4',$student->sibling_age4, $profile_request);
$is_siblingage5 = req_check_if_updated($req_id, 'sibling_age5',$student->sibling_age5, $profile_request);
$is_siblingage6 = req_check_if_updated($req_id, 'sibling_age6',$student->sibling_age6, $profile_request);


$is_siblingfname1 = req_check_if_updated($req_id, 'sibling_fname1',$student->sibling_fname1, $profile_request);
$is_siblingfname2 = req_check_if_updated($req_id, 'sibling_fname2',$student->sibling_fname2, $profile_request);
$is_siblingfname3 = req_check_if_updated($req_id, 'sibling_fname3',$student->sibling_fname3, $profile_request);
$is_siblingfname4 = req_check_if_updated($req_id, 'sibling_fname4',$student->sibling_fname4, $profile_request);
$is_siblingfname5 = req_check_if_updated($req_id, 'sibling_fname5',$student->sibling_fname5, $profile_request);
$is_siblingfname6 = req_check_if_updated($req_id, 'sibling_fname6',$student->sibling_fname6, $profile_request);

$is_siblinglname1 = req_check_if_updated($req_id, 'sibling_lname1',$student->sibling_lname1, $profile_request);
$is_siblinglname2 = req_check_if_updated($req_id, 'sibling_lname2',$student->sibling_lname2, $profile_request);
$is_siblinglname3 = req_check_if_updated($req_id, 'sibling_lname3',$student->sibling_lname3, $profile_request);
$is_siblinglname4 = req_check_if_updated($req_id, 'sibling_lname4',$student->sibling_lname4, $profile_request);
$is_siblinglname5 = req_check_if_updated($req_id, 'sibling_lname5',$student->sibling_lname5, $profile_request);
$is_siblinglname6 = req_check_if_updated($req_id, 'sibling_lname6',$student->sibling_lname6, $profile_request);


$is_hhmembers1 = req_check_if_updated($req_id, 'other_household_member1',$student->other_household_member1, $profile_request);
$is_hhmembers2 = req_check_if_updated($req_id, 'other_household_member2',$student->other_household_member2, $profile_request);
$is_hhmembers3 = req_check_if_updated($req_id, 'other_household_member3',$student->other_household_member3, $profile_request);
$is_hhmembers4 = req_check_if_updated($req_id, 'other_household_member4',$student->other_household_member4, $profile_request);
$is_hhmembers5 = req_check_if_updated($req_id, 'other_household_member5',$student->other_household_member5, $profile_request);
$is_hhmembers6 = req_check_if_updated($req_id, 'other_household_member6',$student->other_household_member6, $profile_request);

$is_hhmembersage1 = req_check_if_updated($req_id, 'other_household_age1',$student->other_household_age1, $profile_request);
$is_hhmembersage2 = req_check_if_updated($req_id, 'other_household_age2',$student->other_household_age2, $profile_request);
$is_hhmembersage3 = req_check_if_updated($req_id, 'other_household_age3',$student->other_household_age3, $profile_request);
$is_hhmembersage4 = req_check_if_updated($req_id, 'other_household_age4',$student->other_household_age4, $profile_request);
$is_hhmembersage5 = req_check_if_updated($req_id, 'other_household_age5',$student->other_household_age5, $profile_request);
$is_hhmembersage6 = req_check_if_updated($req_id, 'other_household_age6',$student->other_household_age6, $profile_request);


$is_language_at_home = req_check_if_updated($req_id, 'languages_spoken_at_home',$student->languages_spoken_at_home, $profile_request);
$is_family_activities = req_check_if_updated($req_id, 'family_activities',$student->family_activities, $profile_request);
$is_family_activities_frequent = req_check_if_updated($req_id, 'family_activities_frequent',$student->family_activities_frequent, $profile_request);
$is_tv_time = req_check_if_updated($req_id, 'time_spent_on_tv',$student->time_spent_on_tv, $profile_request);
$is_tv_whom = req_check_if_updated($req_id, 'tv_whom',$student->tv_whom, $profile_request);
$is_radio_time = req_check_if_updated($req_id, 'time_spent_on_radio',$student->time_spent_on_radio, $profile_request);
$is_radio_whom = req_check_if_updated($req_id, 'radio_whom',$student->radio_whom, $profile_request);
$is_computergames_time = req_check_if_updated($req_id, 'time_spent_on_pc',$student->time_spent_on_pc, $profile_request);
$is_computergames_whom = req_check_if_updated($req_id, 'pc_whom',$student->pc_whom, $profile_request);
$is_child_responsibilities_what = req_check_if_updated($req_id, 'responsibility_what',$student->responsibility_what, $profile_request);
$is_child_play_group = req_check_if_updated($req_id, 'child_playgroup',$student->child_playgroup, $profile_request);
$is_child_play_group_frequent = req_check_if_updated($req_id, 'child_playgroup_frequent',$student->child_playgroup_frequent, $profile_request);
$is_other_interest = req_check_if_updated($req_id, 'child_interest',$student->child_interest, $profile_request);
?>
<div>
	<?=form_open('',' class="custom profile_form" id ="family_history" ')?>
		<div class="large-6 columns">
			<label class="radius secondary label">Status of Parents</label> <?=$is_parent_status->checkbox?>
			<? $dd_class = $is_parent_status->changed ? $is_parent_status->class : ''; ?>
			<?=form_error('parent_status');?>
			<? echo form_dropdown('parent_status',array('married'=>'married',
										   'remarried'=>'remarried',
										   'living together'=>'living together',
										   'separated'=>'separated',
										   'Single Parent'=>'Single Parent'),$parent_status, " class='$dd_class'"); ?>
		</div>
		<div  class="large-6 columns">
			<label class="radius secondary label">For How Long</label> <?=$is_status_how_long->checkbox?>
			<?=form_error('status_how_long');?>
			<input class="<?=$is_status_how_long->changed?$is_status_how_long->class:''?>" type="text" name="status_how_long" value="<?=$status_how_long;?>">
		</div>
		<!--
		<div>
			<label class="radius secondary label">(if single parent) Only</label>
			<?//=form_error('right_over_child');?>
			<input type="text" name="right_over_child" value="<?=$right_over_child;?>">
		</div>
		-->
		<div>
			<label class="radius secondary label">(separated or single) Do parents have rights over child?</label> <?=$is_parent_status->checkbox?>
			<?=form_error('right_over_child');?>
			<input class="<?=$is_right_over_child->changed?$is_right_over_child->class:''?>" type="text" name="right_over_child" value="<?=$right_over_child;?>">
		</div>
		
			<fieldset>
				<legend>Other Family Members (SIBLINGS ONLY)</legend>
				<div>
					<div class="large-10 columns">
						<div class="large-6 columns">
							<label class="radius secondary label">First Name</label> <?=$is_siblingfname1->checkbox?>
							<?=form_error('siblingfname1');?>
							<input class="<?=$is_siblingfname1 ? $is_siblingfname1->class : ''?>" type="text" name="siblingfname1" value="<?=$siblingfname1;?>">
						</div>
						<div class="large-6 columns">
							<label class="radius secondary label">Last Name</label> <?=$is_siblinglname1->checkbox?>
							<?=form_error('siblinglname1');?>
							<input class="<?=$is_siblinglname1->changed ? $is_siblinglname1->class : ''?>" type="text" name="siblinglname1" value="<?=$siblinglname1;?>">
						</div>
					</div>
					<div class="large-2 columns">
						<label class="radius secondary label">Age</label> <?=$is_siblingage1->checkbox?>
						<?=form_error('siblingage1');?>
						<input class="<?=$is_siblingage1->changed ? $is_siblingage1->class : ''?>" type="text" name="siblingage1" value="<?=$siblingage1;?>">
					</div>
				</div>
				<div>
					<div class="large-10 columns">
						<div class="large-6 columns">
							<label class="radius secondary label">First Name</label> <?=$is_siblingfname2->checkbox?>
							<?=form_error('siblingfname2');?>
							<input class="<?=$is_siblingfname2->changed ? $is_siblingfname2->class : ''; ?>" type="text" name="siblingfname2" value="<?=$siblingfname2;?>">
						</div>
						<div class="large-6 columns">
							<label class="radius secondary label">Last Name</label> <?=$is_siblinglname2->checkbox?>
							<?=form_error('siblinglname2');?>
							<input class="<?=$is_siblinglname2->changed ? $is_siblinglname2->class : ''; ?>" type="text" name="siblinglname2" value="<?=$siblinglname2;?>">
						</div>
					</div>
					<div class="large-2 columns">
						<label class="radius secondary label">Age</label> <?=$is_siblingage2->checkbox?>
						<?=form_error('siblingage2');?>
						<input class="<?=$is_siblingage2->changed ? $is_siblingage2->class : ''; ?>" type="text" name="siblingage2" value="<?=$siblingage2;?>">
					</div>
				</div>
				<div>
					<div class="large-10 columns">
						<div class="large-6 columns">
							<label class="radius secondary label">First Name</label> <?=$is_siblingfname3->checkbox?>
							<?=form_error('siblingfname3');?>
							<input class="<?=$is_siblingfname3->changed ? $is_siblingfname3->class : ''; ?>" type="text" name="siblingfname3" value="<?=$siblingfname3;?>">
						</div>
						<div class="large-6 columns">
							<label class="radius secondary label">Last Name</label> <?=$is_siblinglname3->checkbox?>
							<?=form_error('siblinglname3');?>
							<input class="<?=$is_siblinglname3->changed ? $is_siblinglname3->class : ''; ?>" type="text" name="siblinglname3" value="<?=$siblinglname3;?>">
						</div>
					</div>
					<div class="large-2 columns">
						<label class="radius secondary label">Age</label> <?=$is_siblingage3->checkbox?>
						<?=form_error('siblingage3');?>
						<input class="<?=$is_siblingage3->changed ? $is_siblingage3->class : ''; ?>" type="text" name="siblingage3" value="<?=$siblingage3;?>">
					</div>
				</div>
				<div>
					<div class="large-10 columns">
						<div class="large-6 columns">
							<label class="radius secondary label">First Name</label> <?=$is_siblingfname4->checkbox?>
							<?=form_error('siblingfname4');?>
							<input class="<?=$is_siblingfname4->changed ? $is_siblingfname4->class : ''; ?>" type="text" name="siblingfname4" value="<?=$siblingfname4;?>">
						</div>
						<div class="large-6 columns">
							<label class="radius secondary label">Last Name</label> <?=$is_siblinglname4->checkbox?>
							<?=form_error('siblinglname4');?>
							<input class="<?=$is_siblinglname4->changed ? $is_siblinglname4->class : ''; ?>" type="text" name="siblinglname4" value="<?=$siblinglname4;?>">
						</div>
					</div>
					<div class="large-2 columns">
						<label class="radius secondary label">Age</label> <?=$is_siblingage4->checkbox;?>
						<?=form_error('siblingage4');?>
						<input class="<?=$is_siblingage4->changed ? $is_siblingage4->class : ''; ?>" type="text" name="siblingage4" value="<?=$siblingage4;?>">
					</div>
				</div>
				<div>
					<div class="large-10 columns">
						<div class="large-6 columns">
							<label class="radius secondary label">First Name</label> <?=$is_siblingfname5->checkbox?>
							<?=form_error('siblingfname5');?>
							<input class="<?=$is_siblingfname5->changed ? $is_siblingfname5->class : ''; ?>" type="text" name="siblingfname5" value="<?=$siblingfname5;?>">
						</div>
						<div class="large-6 columns">
							<label class="radius secondary label">Last Name</label> <?=$is_siblinglname5->checkbox?>
							<?=form_error('siblinglname5');?>
							<input class="<?=$is_siblinglname5->changed ? $is_siblinglname5->class : ''; ?>" type="text" name="siblinglname5" value="<?=$siblinglname5;?>">
						</div>
					</div>
					<div class="large-2 columns">
						<label class="radius secondary label">Age</label> <?=$is_siblingage5->checkbox?>
						<?=form_error('siblingage5');?>
						<input class="<?=$is_siblingage5->changed ? $is_siblingage5->class : ''; ?>" type="text" name="siblingage5" value="<?=$siblingage5;?>">
					</div>
				</div>
				<div>
					<div class="large-10 columns">
						<div class="large-6 columns">
							<label class="radius secondary label">First Name</label> <?=$is_siblingfname6->checkbox?>
							<?=form_error('siblingfname6');?>
							<input class="<?=$is_siblingfname6->changed ? $is_siblingfname6->class : ''; ?>" type="text" name="siblingfname6" value="<?=$siblingfname6;?>">
						</div>
						<div class="large-6 columns">
							<label class="radius secondary label">Last Name</label> <?=$is_siblingfname6->checkbox?>
							<?=form_error('siblinglname6');?>
							<input class="<?=$is_siblingfname6->changed ? $is_siblingfname6->class : ''; ?>" type="text" name="siblinglname6" value="<?=$siblinglname6;?>">
						</div>
					</div>
					<div class="large-2 columns">
						<label class="radius secondary label">Age</label> <?=$is_siblingage6->checkbox?>
						<?=form_error('siblingage6');?>
						<input class="<?=$is_siblingage6->changed ? $is_siblingage6->class : ''; ?>" type="text" name="siblingage6" value="<?=$siblingage6;?>">
					</div>
				</div>
			</fieldset>

		<div>
			<label class="radius secondary label">Position of Child in Family</label>  <?=$is_position_of_child->checkbox?>
			<? $dd_class = $is_position_of_child->changed ? $is_position_of_child->class : ""; ?>
			<?=form_error('position_of_child');?>
			<?=form_dropdown('position_of_child',$child_birth_position,$position_of_child, " class='$dd_class'");?>
		</div>
		
		<fieldset>
			<div class="large-5 columns">
				<label class="radius secondary label">Is Child Adopted</label> <?=$is_is_child_adopted->checkbox?>
				<? $dd_class = $is_is_child_adopted->changed ? $is_is_child_adopted->class : ""; ?>
				<?=form_error('is_child_adopted');?>
				<?=form_dropdown('is_child_adopted',array('no'=>'No','yes'=>'Yes'),$is_child_adopted, " class='$dd_class'");?>
			</div>
			<div class="large-5 columns">
				<label class="radius secondary label">If Yes Age of Adoption</label> <?=$is_age_of_adoption->checkbox?>
				<?=form_error('age_of_adoption');?>
				<input class="<?=$is_age_of_adoption->changed ? $is_age_of_adoption->class : ''; ?>" type="text" name="age_of_adoption" value="<?=$age_of_adoption;?>">
			</div>
			<div class="clearfix"></div>
			<div class="large-4 columns">
				<label class="radius secondary label">Is the child aware he/she is adopted?</label><?=$is_child_aware_adopted->checkbox?>
				<? $dd_class = $is_child_aware_adopted->changed ? $is_child_aware_adopted->class : ""; ?>
				<?=form_error('child_aware_adopted');?>
				<?=form_dropdown('child_aware_adopted',array('no'=>'No','yes'=>'Yes'),$child_aware_adopted, " class='$dd_class'");?>
			</div>
		</fieldset>
		
		<fieldset>
			<div class="large-8 columns">
				<label class="radius secondary label">Is the mother presently pregnant?</label><?=$is_mother_presently_pregnant->checkbox?>
				<? $dd_class = $is_mother_presently_pregnant->changed ? $is_mother_presently_pregnant->class : ""; ?>
				<?=form_error('mother_presently_pregnant');?>
				<?=form_dropdown('mother_presently_pregnant',array('no'=>'No','yes'=>'Yes'),$mother_presently_pregnant, " class='$dd_class'");?>
			</div>
			<div class="large-3 columns">
				<label class="radius secondary label">If Yes Due date</label> <?=$is_mother_pregnancy_due_date->checkbox;?>
				<?=form_error('mother_pregnancy_due_date');?>
				<input class="<?=$is_mother_pregnancy_due_date->changed ? $is_mother_pregnancy_due_date->class : ''; ?>" type="text" name="mother_pregnancy_due_date" value="<?=$mother_pregnancy_due_date;?>">
			</div>
		</fieldset>
		
		<fieldset>
			<div class="large-7 columns">
				<label class="radius secondary label">Has there been any deaths in the immediate family?</label>
				<?=$is_family_deaths->checkbox?>
				<? $dd_class = $is_family_deaths->changed ? $is_family_deaths->class : ""; ?>
				<?=form_error('family_deaths');?>
				<?=form_dropdown('family_deaths',array('no'=>'No','yes'=>'Yes'),$family_deaths, " class='$dd_class'");?>
			</div>
			<div class="large-4 columns">
				<label class="radius secondary label">Relation to child</label> <?=$is_family_deaths_relation->checkbox?>
				<?=form_error('family_deaths_relation');?>
				<input class="<?=$is_family_deaths_relation->changed ? $is_family_deaths_relation->class : ''; ?>" type="text" name="family_deaths_relation" value="<?=$family_deaths_relation;?>">
			</div>
			
			
			
			<div class="large-7 columns">
				<label class="radius secondary label">Has there been any serious accidents in the family?</label><?=$is_family_accidents->checkbox?>
				<? $dd_class = $is_family_accidents->changed ? $is_family_accidents->class : ""; ?>
				<?=form_error('family_accidents');?>
				<?=form_dropdown('family_accidents',array('no'=>'No','yes'=>'Yes'),$family_accidents, " class='$dd_class'");?>
			</div>
			<div class="large-4 columns">
				<label class="radius secondary label">Relation to child</label> <?=$is_family_accidents_relation->checkbox?>
				<?=form_error('family_accidents_relation');?>
				<input class="<?=$is_family_accidents_relation->changed ? $is_family_accidents_relation->class : ''; ?>" type="text" name="family_accidents_relation" value="<?=$family_accidents_relation;?>">
			</div>
			
			<div>
				<label class="radius secondary label">What?:</label> <?=$is_what->checkbox;?>
				<?=form_error('what');?>
				<input class="<?=$is_what->changed ? $is_what->class : '' ?>" type="text" name="what" value="<?=$what;?>">
			</div>
			<div>
				<label class="radius secondary label">When?:</label> <?=$is_when->checkbox?>
				<?=form_error('when');?>
				<input class="<?=$is_when->changed ? $is_when->class : '' ?>" type="text" name="when" value="<?=$when;?>">
			</div>
		</fieldset>
		
		<fieldset>
				<legend>Other Household Members (Relatives,Helpers, etc..)</legend>
				<div>
					<div class="large-8 columns">
						<label class="radius secondary label">Name</label> <?=$is_hhmembers1->checkbox?>
						<?=form_error('hhmembers1');?>
						<input class="<?=$is_hhmembers1->changed ? $is_hhmembers1->class : '' ?>" type="text" name="hhmembers1" value="<?=$hhmembers1;?>">
					</div>
					<div class="large-4 columns">
						<label class="radius secondary label">Age</label> <?=$is_hhmembersage1->checkbox?>
						<?=form_error('hhmembersage1');?>
						<input class="<?=$is_hhmembersage1->changed ? $is_hhmembersage1->class : '' ?>" type="text" name="hhmembersage1" value="<?=$hhmembersage1;?>">
					</div>
				</div>
				<div>
					<div class="large-8 columns">
						<label class="radius secondary label">Name</label> <?=$is_hhmembersage2->checkbox?>
						<?=form_error('hhmembers2');?>
						<input class="<?=$is_hhmembersage2->changed ? $is_hhmembersage2->class : '' ?>" type="text" name="hhmembers2" value="<?=$hhmembers2;?>">
					</div>
					<div class="large-4 columns">
						<label class="radius secondary label">Age</label> <?=$is_hhmembersage2->checkbox?>
						<?=form_error('hhmembersage2');?>
						<input class="<?=$is_hhmembersage2->changed ? $is_hhmembersage2->class : '' ?>" type="text" name="hhmembersage2" value="<?=$hhmembersage2;?>">
					</div>
				</div>
				<div>
					<div class="large-8 columns">
						<label class="radius secondary label">Name</label> <?=$is_hhmembers3->checkbox?>
						<?=form_error('hhmembers3');?>
						<input class="<?=$is_hhmembers3->changed ? $is_hhmembers3->class : '' ?>" type="text" name="hhmembers3" value="<?=$hhmembers3;?>">
					</div>
					<div class="large-4 columns">
						<label class="radius secondary label">Age</label> <?=$is_hhmembersage3->checkbox?>
						<?=form_error('hhmembersage3');?>
						<input class="<?=$is_hhmembersage3->changed ? $is_hhmembersage3->class : '' ?>" type="text" name="hhmembersage3" value="<?=$hhmembersage3;?>">
					</div>
				</div>
				<div>
					<div class="large-8 columns">
						<label class="radius secondary label">Name</label> <?=$is_hhmembersage4->checkbox?>
						<?=form_error('hhmembers4');?>
						<input class="<?=$is_hhmembersage4->changed ? $is_hhmembersage4->class : '' ?>" type="text" name="hhmembers4" value="<?=$hhmembers4;?>">
					</div>
					<div class="large-4 columns">
						<label class="radius secondary label">Age</label> <?=$is_hhmembersage4->checkbox?>
						<?=form_error('hhmembersage4');?>
						<input class="<?=$is_hhmembersage4->changed ? $is_hhmembersage4->class : '' ?>" type="text" name="hhmembersage4" value="<?=$hhmembersage4;?>">
					</div>
				</div>
				<div>
					<div class="large-8 columns">
						<label class="radius secondary label">Name</label> <?=$is_hhmembers5->checkbox;?>
						<?=form_error('hhmembers5');?>
						<input class="<?=$is_hhmembers5->changed ? $is_hhmembers5->class : '' ?>" type="text" name="hhmembers5" value="<?=$hhmembers5;?>">
					</div>
					<div class="large-4 columns">
						<label class="radius secondary label">Age</label> <?=$is_hhmembersage5->checkbox?>
						<?=form_error('hhmembersage5');?>
						<input class="<?=$is_hhmembersage5->changed ? $is_hhmembersage5->class : '' ?>" type="text" name="hhmembersage5" value="<?=$hhmembersage5;?>">
					</div>
				</div>
				<div>
					<div class="large-8 columns">
						<label class="radius secondary label">Name</label> <?=$is_hhmembers6->checkbox?>
						<?=form_error('hhmembers6');?>
						<input class="<?=$is_hhmembers6->changed ? $is_hhmembers6->class : '' ?>" type="text" name="hhmembers6" value="<?=$hhmembers6;?>">
					</div>
					<div class="large-4 columns">
						<label class="radius secondary label">Age</label> <?=$is_hhmembersage6->checkbox?>
						<?=form_error('hhmembersage6');?>
						<input class="<?=$is_hhmembersage6->changed ? $is_hhmembersage6->class : '' ?>" type="text" name="hhmembersage6" value="<?=$hhmembersage6;?>">
					</div>
				</div>
		</fieldset>
			
			<div>
				<label class="radius secondary label">Languages Spoken at home?</label>  <?=$is_language_at_home->checkbox?>
				<?=form_error('language_at_home');?>
				<input class="<?=$is_language_at_home->changed ? $is_language_at_home->class : '' ?>" type="text" name="language_at_home" value="<?=$language_at_home;?>">
			</div>
			
			<div>
				<div class="large-6 columns">
					<label class="radius secondary label">Activites Family Engages in?</label> <?=$is_family_activities->checkbox?>
					<?=form_error('family_activities');?>
					<textarea class="<?=$is_family_activities->changed ? $is_family_activities->class : '' ?>" name="family_activities"><?=$family_activities;?></textarea>
				</div>
				<div class="large-6 columns">
					<label class="radius secondary label">How frequent?</label> <?=$is_family_activities_frequent->checkbox?>
					<?=form_error('family_activities_frequent');?>
					<textarea class="<?=$is_family_activities_frequent->changed ? $is_family_activities_frequent->class : '' ?>" name="family_activities_frequent"><?=$family_activities_frequent;?></textarea>
				</div>
			</div>
			
			<fieldset>
				<legend>How much time does the child spend in</legend>
				<div>
					<div class="large-6 columns">
						<label class="radius secondary label">Watching TV or videos in a day?</label> <?=$is_tv_time->checkbox?>
						<?=form_error('tv_time');?>
						<input class="<?=$is_tv_time->changed ? $is_tv_time->class : '' ?>" type="text" name="tv_time" value="<?=$tv_time;?>">
					</div>
					<div class="large-6 columns">
						<label class="radius secondary label">With Whom</label> <?=$is_tv_whom->checkbox?>
						<?=form_error('tv_whom');?>
						<input class="<?=$is_tv_whom->changed ? $is_tv_whom->class : '' ?>" type="text" name="tv_whom" value="<?=$tv_whom;?>">
					</div>
				</div>
				<div>
					<div class="large-6 columns">
						<label class="radius secondary label">Listening to radio in a day?</label> <?=$is_radio_time->checkbox?>
						<?=form_error('radio_time');?>
						<input class="<?=$is_radio_time->changed ? $is_radio_time->class : '' ?>" type="text" name="radio_time" value="<?=$radio_time;?>">
					</div>
					<div class="large-6 columns">
						<label class="radius secondary label">With Whom</label> <?=$is_radio_whom->checkbox?>
						<?=form_error('radio_whom');?>
						<input class="<?=$is_radio_whom->changed ? $is_radio_whom->class : '' ?>" type="text" name="radio_whom" value="<?=$radio_whom;?>">
					</div>
				</div>
				<div>
					<div class="large-6 columns">
						<label class="radius secondary label">Playing computer games in a day?</label> <?=$is_computergames_time->checkbox?>
						<?=form_error('computergames_time');?>
						<input class="<?=$is_computergames_time->changed ? $is_computergames_time->class : '' ?>" type="text" name="computergames_time" value="<?=$computergames_time;?>">
					</div>
					<div class="large-6 columns">
						<label class="radius secondary label">With Whom</label> <?=$is_computergames_whom->checkbox?>
						<?=form_error('computergames_whom');?>
						<input class="<?=$is_computergames_whom->changed ? $is_computergames_whom->class : '' ?>" type="text" name="computergames_whom" value="<?=$computergames_whom;?>">
					</div>
				</div>
			</fieldset>
			
			<div>
					<label class="radius secondary label">Does the child have any Responsibilities/Duties in Home? What are his/her responsibilities?</label> <?=$is_child_responsibilities_what->checkbox?>
					<?=form_error('child_responsibilities_what');?>
					<input class="<?=$is_child_responsibilities_what->changed ? $is_child_responsibilities_what->class : '' ?>" type="text" name="child_responsibilities_what" value="<?=$child_responsibilities_what;?>">
			</div>
			<div class="clearfix"></div>
			<div>
				<div class="large-6 columns">
					<label class="radius secondary label">Does child have a play group?</label> <?=$is_child_play_group->checkbox?>
					<? $dd_class = $is_child_play_group->changed ? $is_child_play_group->class : ""; ?>
					<?=form_error('child_play_group');?>
					<?=form_dropdown('child_play_group',array('no'=>'No','yes'=>'Yes'),$child_play_group, " class='$dd_class'");?>
				</div>
				<div class="large-6 columns">
						<label class="radius secondary label">How frequent does child play with group</label> <?=$is_child_play_group_frequent->checkbox?>
						<?=form_error('child_play_group_frequent');?>
						<input class="<?=$is_child_play_group_frequent->changed ? $is_child_play_group_frequent->class : '' ?>" type="text" name="child_play_group_frequent" value="<?=$child_play_group_frequent;?>">
				</div>
			</div>
			<div class="clearfix"></div>
			<div>
				<label class="radius secondary label">What are the other activites/interest of your child?</label> <?=$is_other_interest->checkbox?>
				<?=form_error('other_interest');?>
				<textarea class="<?=$is_other_interest->changed ? $is_other_interest->class : '' ?>" name="other_interest"><?=$other_interest;?></textarea>
			</div>
			<?/*if(isset($student->edit) && $student->edit === 1):?>
				<div>
					<div>
						<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
						<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
						<input type="hidden" name="update_family_history" value="true">
						<input type="submit" name="update_family_history" value="Update Family History"  class="btn btn-primary">
					</div>
				</div>
			<?endif;*/?>
	</form>
</div>